package kr.hkit.powerjava.algorithm;

public class BinaryTest {

	public static void main(String[] args) {
		int[] arr = {1, 4, 5, 2, 3, 6, 7, 9, 10, 13, 15}; 
		BinarySearch bi = new BinarySearch(arr, 10);
		bi.prnArr();
		
		bi.binary();
		bi.prnArr();
		
		bi.setSearchKey(6);
		bi.binary();
		
		bi.setSearchKey(15);
		bi.binary();
		
		bi.setSearchKey(55);
		bi.binary();
		
		bi.setSearchKey(1);
		bi.binary();
		
		bi.setSearchKey(0);
		bi.binary();
	}
}
